import {CHANGE_INPUT,ADD_ITEM,DELETE_ITEM} from './action-type'
export const changeInputAction=(value)=>{
    return {
        type:CHANGE_INPUT,
        value
    }
}
export const addItemAction=()=>({
    type:ADD_ITEM
})
//这里先括号，是利用箭头函数不写{}时默认有return
export const deleteItemAction=(index)=>({
    type:DELETE_ITEM,
    index
})